<template>
	<view>
		
		<view class="box">
			<view class="tabbar acea-row row-around row-middle">
				<view class="item acea-row row-middle row-center row-column" @click="urlClick(`/pages/index/newindex`)">
					<view>
						<image v-if="path=='/pages/index/newindex'" class="icon" src="https://yuchengpic.oss-cn-hangzhou.aliyuncs.com/img/tabar01.png" mode="aspectFit"></image>
						<image v-else class="icon" src="https://yuchengpic.oss-cn-hangzhou.aliyuncs.com/img/tabbar02.png" mode="aspectFit"></image>
					</view>
					<view class="fs30" :class="path=='/pages/index/newindex'?'themecolor':'fc999'">首页</view>
				</view>
				<view class="item acea-row row-middle row-center row-column" @click="urlClick(`/pages/user/user`)">
					<view>
						<image v-if="path=='/pages/user/user'" class="icon" src="https://yuchengpic.oss-cn-hangzhou.aliyuncs.com/img/tabbar04.png" mode="aspectFit"></image>
						<image v-else class="icon" src="https://yuchengpic.oss-cn-hangzhou.aliyuncs.com/img/tabbar03.png" mode="aspectFit"></image>
					</view>
					<view class="fs30" :class="path=='/pages/user/user'?'themecolor':'fc999'">我的</view>
				</view>
			</view>
		</view>
		<view style="width: 100%;height: 200rpx;"></view>
		
	</view>


</template>

<script>
	export default {
		props:{
			path:{
				type: String,
				default: '/pages/index/newindex'
			}
		},
		data() {
			return {
				
			};
		},
		methods:{
			urlClick(url){
				console.log(url);
				uni.reLaunch({
					url: url
				})
			}
		}
	}
</script>

<style lang="scss">
	.box{
		width: 100%;
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		padding: 30rpx;
	}
	.tabbar{
		width: 690rpx;
		height: 156rpx;
		border-radius: 100rpx;
		background: #FFFFFF;
		box-shadow: 0 -2rpx 20rpx 0 rgba(88, 73, 201, 0.3);
		
		.item{
			
			.icon{
				width: 70rpx;
				height: 70rpx;
			}
			
		}
	}
</style>
